<?php
include('database/conector.php');

function doLogin($userName, $password){
	$query = mysql_query("SELECT * FROM profesores WHERE dni = '".$userName."' AND pass = '".$password."'");
	if(mysql_num_rows($query) !=0){
		setCookie("dniLogin", $userName, time()+3600);
		header("Location: ./Views/menu.php");

	}else{

	}
}
?>